package com.jkoss.wine.shopOrder.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 
 * 
 * @Author 周华军
 * @Version 1.0, 2018-11-09
 * @See
 * @Since com.jkoss.wine.shopOrder.entity
 * @Description: TODO
 */
@TableName("card_type")
public class CardType extends Model<CardType> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId("card_type_id")
	private String cardTypeId;
	/**
	 * 卡类型名称 如白金卡
	 */
	@TableField("type_name")
	private String typeName;
	/**
	 * 折扣 0到10的数字
	 */
	@TableField("discount")
	private Integer discount;
	/**
	 * 店铺ID
	 */
	@TableField("shop_id")
	private String shopId;
	/**
	 * 添加时间
	 */
	@TableField("add_time")
	private Date addTime;
	/**
	 * 操作人 直接填用户名称
	 */
	@TableField("operator")
	private String operator;
	/**
	 * 是否删除 0否1是
	 */
	@TableField("del")
	private Integer del;

	public String getCardTypeId() {
		return cardTypeId;
	}

	public void setCardTypeId(String cardTypeId) {
		this.cardTypeId = cardTypeId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Integer getDiscount() {
		return discount;
	}

	public void setDiscount(Integer discount) {
		this.discount = discount;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	@Override
	protected Serializable pkVal() {
		return this.cardTypeId;
	}

	@Override
	public String toString() {
		return "CardType{" + ", cardTypeId=" + cardTypeId + ", typeName=" + typeName + ", discount=" + discount + ", shopId=" + shopId + ", addTime=" + addTime + ", operator=" + operator + ", del=" + del + "}";
	}
}
